﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Mod.Groups.Albums
{
    using SharingCenter.Web.Classes;
    using SharingCenter.Web.Classes.Events;
    using SharingCenter.Web.Classes.Albums;

    public partial class Album : GroupsPageBase
    {
        Guid albumId;
        protected AlbumsWithCoverImage album;

        protected void Page_Init(object sender, EventArgs e)
        {
            ParseGroupIdFromQueryString();
            HasRights(groupId, Profile.UserId);
        }

        void CommentControl1_CommentCreated(object sender, SharingCenter.Web.Shared.CommentCreatedEventArgs e)
        {
            
        }

       

        protected void Page_Load(object sender, EventArgs e)
        {
            albumId = new Guid(Request.QueryString["aid"]);
            AlbumImage1.AlbumId = albumId;
            CommentControl1.ContextId = albumId;
            album = AlbumOperations.GetAlbum(albumId);
            GroupHeader1.SubTitle = "相册 - " + album.Title;
        }
    }
}
